<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
</head>
<body>
    <div id="create-form">
        <select name="education">
            <option value="">请选择</option>
            <option value="1">初中</option>
            <option value="2">高中</option>
            <option value="4">中专</option>
            <option value="5">大专</option>
            <option value="6">本科</option>
            <option value="7">硕士</option>
            <option value="10">博士</option>
            <option value="11">其他</option>
        </select>
        <br />

        <input type="radio" name="radio" value="1" id="radio_0" />1
        <input type="radio" name="radio" value="2" id="radio_1" />2
        <br />

        <input name="chk" type="checkbox" value="1" />1
        <input name="chk" type="checkbox" value="2" />2
        <input name="chk" type="checkbox" value="3" />3
        <br />

        <input type="text" name="txt" value="" />
        <input type="password" name="pwd" value="" />
        <input type="hidden" name="hdn" value="" />
        <br />

        <input type="button" name="button" value="" />
        <button name="button2"></button>
        <br />

        <textarea name="textarea" cols="20" rows="7"></textarea>

        <div name="div"></div>
    </div>

    <script src="http://cdn.bootcss.com/jquery/2.2.1/jquery.min.js"></script>
    <script src="./public/js/jquery.unserializeArray.js"></script>

    <script type="text/javascript">
    // ============================= test ============================= //
    $("#create-form").unserializeArray(
        {
            "haha": "345",
            "education": "4", 
            "radio": "2", 
            "chk": "1,3", 
            "txt": "testtesttest", 
            "pwd": "123456",
            "button": "button", 
            "div": "bb",
            "button2": "button2", 
            "textarea": "textareatextareatextarea"
        }
    );
    console.log($("div").find('[name="div"]').data('div'));
    // ============================= test ============================= //
    </script>
</body>
</html>